package com.chengxiaoxiao.dao;

import com.chengxiaoxiao.domain.Users;

import java.util.List;

public interface UsersDao extends CommonDao<Users> {
    int getTotalRecordsNum();

    Users getUserByUsernameAndPassword(String username, String password);

    /**
     * 根据用户ID获取User和UserExtra
     * @param id
     * @return
     */
    Users getUserAndExtra(long id);

    List getPageLikeSNum(int startIndex, int pageSize, String snum);

    Users getAllUserInfo(int ids);

    void black(int ids,String cause);

    Users getUserInfoByUid(String uid);
}
